package top.llcngu.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description 服务提供者
 * @author llcngu
 * @date 2021/4/2 23:29
 * @since v1.0
 * @version v1.0
 */
@RestController
public class ProviderController {

    /**
     * @description 根据入参进行结果拼装
     * @author llcngu
     * @date 2021/4/3 17:00
     * @param name 名称参数
     * @return 拼接后的结果
     */
    @GetMapping("/provider")
    public String test(@RequestParam("name") String name) {
        return "Hello " + name + ", I'm a provider";
    }
}
